import request from '@/utils/request'
export const sysLogin = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export const sysProfile = (data) => {
  return request({
    url: '/sys/profile',
    method: 'post',
    data
  })
}
// 根据id获取用户信息
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}

// 根据id修改用户信息
export const sysUserPut = (data) => {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'put',
    data
  })
}
